home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 December / 2004-12 CHIP.iso / CHIP / Porady / Srodowisko PHP-MySQL / WAMP5 1.3 / wamp5_1.3.exe / {app} / www / phpmyadmin / config.inc.php < prev    next >
PHP Script  |  2004-09-24  |  38KB  |  827 lines

  1. <?php
  2. /* $Id: config.inc.php,v 2.40 2004/09/16 12:15:50 lem9 Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5. /**
  6.  * phpMyAdmin Configuration File
  7.  *
  8.  * All directives are explained in Documentation.html
  9.  */
  10.  
  11.  
  12. /**
  13.  * Sets the php error reporting - Please do not change this line!
  14.  */
  15. if (!isset($old_error_reporting)) {
  16.     error_reporting(E_ALL);
  17.     @ini_set('display_errors', '1');
  18. }
  19.  
  20.  
  21. /**
  22.  * Your phpMyAdmin url
  23.  *
  24.  * Complete the variable below with the full url ie
  25.  *    http://www.your_web.net/path_to_your_phpMyAdmin_directory/
  26.  *
  27.  * It must contain characters that are valid for a URL, and the path is
  28.  * case sensitive on some Web servers, for example Unix-based servers.
  29.  *
  30.  * In most cases you can leave this variable empty, as the correct value
  31.  * will be detected automatically. However, we recommend that you do
  32.  * test to see that the auto-detection code works in your system. A good
  33.  * test is to browse a table, then edit a row and save it.  There will be
  34.  * an error message if phpMyAdmin cannot auto-detect the correct value.
  35.  *
  36.  * If the auto-detection code does work properly, you can set to TRUE the
  37.  * $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
  38.  */
  39. $cfg['PmaAbsoluteUri'] = '';
  40.  
  41.  
  42. /**
  43.  * Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
  44.  * You should use this if and ONLY if the PmaAbsoluteUri auto-detection
  45.  * works perfectly.
  46.  */
  47. $cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;
  48.  
  49. /**
  50.  * Disable the default warning that is displayed on the DB Details Structure page if
  51.  * any of the required Tables for the relationfeatures could not be found
  52.  */
  53. $cfg['PmaNoRelation_DisableWarning']  = FALSE;
  54.  
  55. /**
  56.  * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
  57.  * at least one server configuration uses 'cookie' auth_type, enter here a
  58.  * passphrase that will be used by blowfish.
  59.  */
  60. $cfg['blowfish_secret'] = '';
  61.  
  62. /**
  63.  * Server(s) configuration
  64.  */
  65. $i = 0;
  66. // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
  67. // You can disable a server config entry by setting host to ''.
  68. $i++;
  69. $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
  70. $cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
  71. $cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
  72. $cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
  73. $cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
  74. $cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
  75.                                                     // (requires PHP >= 4.3.0)
  76. $cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
  77.                                                     // (this user must have read-only
  78. $cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
  79.                                                     // and "mysql/db" tables).
  80.                                                     // The controluser is also
  81.                                                     // used for all relational
  82.                                                     // features (pmadb)
  83. $cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
  84. $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
  85. $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
  86.                                                     // with 'config' auth_type)
  87. $cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
  88.                                                     // this db is displayed in left frame
  89.                                                     // It may also be an array of db-names, where sorting order is relevant.
  90. $cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname
  91.  
  92. $cfg['Servers'][$i]['pmadb']         = '';          // Database used for Relation, Bookmark and PDF Features
  93.                                                     // (see scripts/create_tables.sql)
  94.                                                     //   - leave blank for no support
  95.                                                     //     DEFAULT: 'phpmyadmin'
  96. $cfg['Servers'][$i]['bookmarktable'] = '';          // Bookmark table
  97.                                                     //   - leave blank for no bookmark support
  98.                                                     //     DEFAULT: 'pma_bookmark'
  99. $cfg['Servers'][$i]['relation']      = '';          // table to describe the relation between links (see doc)
  100.                                                     //   - leave blank for no relation-links support
  101.                                                     //     DEFAULT: 'pma_relation'
  102. $cfg['Servers'][$i]['table_info']    = '';          // table to describe the display fields
  103.                                                     //   - leave blank for no display fields support
  104.                                                     //     DEFAULT: 'pma_table_info'
  105. $cfg['Servers'][$i]['table_coords']  = '';          // table to describe the tables position for the PDF schema
  106.                                                     //   - leave blank for no PDF schema support
  107.                                                     //     DEFAULT: 'pma_table_coords'
  108. $cfg['Servers'][$i]['pdf_pages']     = '';          // table to describe pages of relationpdf
  109.                                                     //   - leave blank if you don't want to use this
  110.                                                     //     DEFAULT: 'pma_pdf_pages'
  111. $cfg['Servers'][$i]['column_info']   = '';          // table to store column information
  112.                                                     //   - leave blank for no column comments/mime types
  113.                                                     //     DEFAULT: 'pma_column_info'
  114. $cfg['Servers'][$i]['history']       = '';          // table to store SQL history
  115.                                                     //   - leave blank for no SQL query history
  116.                                                     //     DEFAULT: 'pma_history'
  117. $cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pma_* tables
  118.                                                     // are up to date. This prevents compatibility
  119.                                                     // checks and thereby increases performance.
  120. $cfg['Servers'][$i]['AllowDeny']['order']           // Host authentication order, leave blank to not use
  121.                                      = '';
  122. $cfg['Servers'][$i]['AllowDeny']['rules']           // Host authentication rules, leave blank for defaults
  123.                                      = array();
  124.  
  125.  
  126. $i++;
  127. $cfg['Servers'][$i]['host']            = '';
  128. $cfg['Servers'][$i]['port']            = '';
  129. $cfg['Servers'][$i]['socket']          = '';
  130. $cfg['Servers'][$i]['connect_type']    = 'tcp';
  131. $cfg['Servers'][$i]['extension']       = 'mysql';
  132. $cfg['Servers'][$i]['compress']        = FALSE;
  133. $cfg['Servers'][$i]['controluser']     = '';
  134. $cfg['Servers'][$i]['controlpass']     = '';
  135. $cfg['Servers'][$i]['auth_type']       = 'config';
  136. $cfg['Servers'][$i]['user']            = 'root';
  137. $cfg['Servers'][$i]['password']        = '';
  138. $cfg['Servers'][$i]['only_db']         = '';
  139. $cfg['Servers'][$i]['verbose']         = '';
  140. $cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
  141. $cfg['Servers'][$i]['bookmarktable']   = ''; // 'pma_bookmark'
  142. $cfg['Servers'][$i]['relation']        = ''; // 'pma_relation'
  143. $cfg['Servers'][$i]['table_info']      = ''; // 'pma_table_info'
  144. $cfg['Servers'][$i]['table_coords']    = ''; // 'pma_table_coords'
  145. $cfg['Servers'][$i]['pdf_pages']       = ''; // 'pma_pdf_pages'
  146. $cfg['Servers'][$i]['column_info']     = ''; // 'pma_column_info'
  147. $cfg['Servers'][$i]['history']         = ''; // 'pma_history'
  148. $cfg['Servers'][$i]['verbose_check']   = TRUE;
  149. $cfg['Servers'][$i]['AllowDeny']['order']
  150.                                        = '';
  151. $cfg['Servers'][$i]['AllowDeny']['rules']
  152.                                        = array();
  153.  
  154. $i++;
  155. $cfg['Servers'][$i]['host']            = '';
  156. $cfg['Servers'][$i]['port']            = '';
  157. $cfg['Servers'][$i]['socket']          = '';
  158. $cfg['Servers'][$i]['connect_type']    = 'tcp';
  159. $cfg['Servers'][$i]['extension']       = 'mysql';
  160. $cfg['Servers'][$i]['compress']        = FALSE;
  161. $cfg['Servers'][$i]['controluser']     = '';
  162. $cfg['Servers'][$i]['controlpass']     = '';
  163. $cfg['Servers'][$i]['auth_type']       = 'config';
  164. $cfg['Servers'][$i]['user']            = 'root';
  165. $cfg['Servers'][$i]['password']        = '';
  166. $cfg['Servers'][$i]['only_db']         = '';
  167. $cfg['Servers'][$i]['verbose']         = '';
  168. $cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
  169. $cfg['Servers'][$i]['bookmarktable']   = ''; // 'pma_bookmark'
  170. $cfg['Servers'][$i]['relation']        = ''; // 'pma_relation'
  171. $cfg['Servers'][$i]['table_info']      = ''; // 'pma_table_info'
  172. $cfg['Servers'][$i]['table_coords']    = ''; // 'pma_table_coords'
  173. $cfg['Servers'][$i]['pdf_pages']       = ''; // 'pma_pdf_pages'
  174. $cfg['Servers'][$i]['column_info']     = ''; // 'pma_column_info'
  175. $cfg['Servers'][$i]['history']         = ''; // 'pma_history'
  176. $cfg['Servers'][$i]['verbose_check']   = TRUE;
  177. $cfg['Servers'][$i]['AllowDeny']['order']
  178.                                        = '';
  179. $cfg['Servers'][$i]['AllowDeny']['rules']
  180.                                        = array();
  181.  
  182. // If you have more than one server configured, you can set $cfg['ServerDefault']
  183. // to any one of them to autoconnect to that server when phpMyAdmin is started,
  184. // or set it to 0 to be given a list of servers without logging in
  185. // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
  186. // set to that server.
  187. $cfg['ServerDefault'] = 1;              // Default server (0 = no default server)
  188. $cfg['Server']        = '';
  189. unset($cfg['Servers'][0]);
  190.  
  191.  
  192. /**
  193.  * Other core phpMyAdmin settings
  194.  */
  195. $cfg['OBGzip']                  = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
  196. $cfg['PersistentConnections']   = FALSE;  // use persistent connections to MySQL database
  197. $cfg['ExecTimeLimit']           = 300;    // maximum execution time in seconds (0 for no limit)
  198. $cfg['SkipLockedTables']        = FALSE;  // mark used tables, make possible to show
  199.                                           // locked tables (since MySQL 3.23.30)
  200. $cfg['ShowSQL']                 = TRUE;   // show SQL queries as run
  201. $cfg['AllowUserDropDatabase']   = FALSE;  // show a 'Drop database' link to normal users
  202. $cfg['Confirm']                 = TRUE;   // confirm 'DROP TABLE' & 'DROP DATABASE'
  203. $cfg['LoginCookieRecall']       = TRUE;   // recall previous login in cookie auth. mode or not
  204. $cfg['LoginCookieValidity']     = 1800;   // validity of cookie login (in seconds)
  205. $cfg['UseDbSearch']             = TRUE;   // whether to enable the "database search" feature
  206.                                           // or not
  207. $cfg['IgnoreMultiSubmitErrors'] = FALSE;  // if set to true, PMA continues computing multiple-statement queries
  208.                                           // even if one of the queries failed
  209. $cfg['VerboseMultiSubmit']      = TRUE;   // if set to true, PMA will show the affected rows of EACH statement on
  210.                                           // multiple-statement queries. See the read_dump.php file for hardcoded
  211.                                           // defaults on how many queries a statement may contain!
  212. $cfg['AllowArbitraryServer']    = FALSE;  // allow login to any user entered server in cookie based auth
  213.  
  214. // Left frame setup
  215. $cfg['LeftFrameLight']        = TRUE;    // use a select-based menu and display only the
  216.                                          // current tables in the left frame.
  217. $cfg['LeftFrameTableSeparator']= '__';   // Which string will be used to generate table prefixes
  218.                                          // to split/nest tables into multiple categories
  219. $cfg['LeftFrameTableLevel']   = '1';     // How many sublevels should be displayed when splitting
  220.                                          // up tables by the above Separator
  221. $cfg['ShowTooltip']           = TRUE;    // display table comment as tooltip in left frame
  222. $cfg['ShowTooltipAliasDB']    = FALSE;   // if ShowToolTip is enabled, this defines that table/db comments
  223. $cfg['ShowTooltipAliasTB']    = FALSE;   // are shown (in the left menu and db_details_structure) instead of
  224.                                          // table/db names. Setting ShowTooltipAliasTB to 'nested' will only
  225.                                          // use the Aliases for nested descriptors, not the table itself.
  226.  
  227. $cfg['LeftDisplayLogo']       = TRUE;   // display logo at top of left frame
  228. $cfg['LeftDisplayServers']    = FALSE;  // display server choice at top of left frame
  229. $cfg['DisplayServersList']    = FALSE;  // server choice as links
  230.  
  231. // In the main frame, at startup...
  232. $cfg['ShowStats']             = TRUE;   // allow to display statistics and space usage in
  233.                                         // the pages about database details and table
  234.                                         // properties
  235. $cfg['ShowMysqlInfo']         = FALSE;  // whether to display the "MySQL runtime
  236. $cfg['ShowMysqlVars']         = FALSE;  // information", "MySQL system variables", "PHP
  237. $cfg['ShowPhpInfo']           = FALSE;  // information" and "change password" links for
  238. $cfg['ShowChgPassword']       = FALSE;  // simple users or not
  239. $cfg['SuggestDBName']         = TRUE;   // suggest a new DB name if possible (false = keep empty)
  240.  
  241. // In browse mode...
  242. $cfg['ShowBlob']              = FALSE;  // display blob field contents
  243. $cfg['NavigationBarIconic']   = TRUE;   // do not display text inside navigation bar buttons
  244. $cfg['ShowAll']               = FALSE;  // allows to display all the rows
  245. $cfg['MaxRows']               = 30;     // maximum number of rows to display
  246. $cfg['Order']                 = 'ASC';  // default for 'ORDER BY' clause (valid
  247.                                         // values are 'ASC', 'DESC' or 'SMART' -ie
  248.                                         // descending order for fields of type
  249.                                         // TIME, DATE, DATETIME & TIMESTAMP,
  250.                                         // ascending order else-)
  251.  
  252. // In edit mode...
  253. $cfg['ProtectBinary']         = 'blob'; // disallow editing of binary fields
  254.                                         // valid values are:
  255.                                         //   FALSE  allow editing
  256.                                         //   'blob' allow editing except for BLOB fields
  257.                                         //   'all'  disallow editing
  258. $cfg['ShowFunctionFields']    = TRUE;   // Display the function fields in edit/insert mode
  259. $cfg['CharEditing']           = 'input';
  260.                                         // Which editor should be used for CHAR/VARCHAR fields:
  261.                                         //  input - allows limiting of input length
  262.                                         //  textarea - allows newlines in fields
  263. $cfg['InsertRows']            = 2;      // How many rows can be inserted at one time
  264.  
  265. // For the export features...
  266. $cfg['ZipDump']               = TRUE;   // Allow the use of zip/gzip/bzip
  267. $cfg['GZipDump']              = TRUE;   // compression for
  268. $cfg['BZipDump']              = TRUE;   // dump files
  269. $cfg['CompressOnFly']         = TRUE;   // Will compress gzip/bzip2 exports on
  270.                                         // fly without need for much memory.
  271.                                         // If you encounter problems with
  272.                                         // created gzip/bzip2 files disable
  273.                                         // this feature.
  274.  
  275. // Tabs display settings
  276. $cfg['LightTabs']             = FALSE;  // use graphically less intense menu tabs
  277. $cfg['PropertiesIconic']      = TRUE;   // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')
  278. $cfg['PropertiesNumColumns']  = 1;      // How many columns should be used for table display of a database?
  279.                                         // (a value larger than 1 results in some information being hidden)
  280.  
  281. $cfg['DefaultTabServer']      = 'main.php';
  282.                                    // Possible values:
  283.                                    // 'main.php' = the welcome page
  284.                                    // (recommended for multiuser setups)
  285.                                    // 'server_databases.php' = list of databases
  286.                                    // 'server_status.php' = runtime information
  287.                                    // 'server_variables.php' = MySQL server variables
  288.                                    // 'server_privileges.php' = user management
  289.                                    // 'server_processlist.php' = process list
  290. $cfg['DefaultTabDatabase']    = 'db_details_structure.php';
  291.                                    // Possible values:
  292.                                    // 'db_details_structure.php' = tables list
  293.                                    // 'db_details.php' = sql form
  294.                                    // 'db_search.php' = search query
  295. $cfg['DefaultTabTable']       = 'tbl_properties_structure.php';
  296.                                    // Possible values:
  297.                                    // 'tbl_properties_structure.php' = fields list
  298.                                    // 'tbl_properties.php' = sql form
  299.                                    // 'tbl_select.php = select page
  300.                                    // 'tbl_change.php = insert row page
  301.  
  302. /**
  303.  * Export defaults
  304.  */
  305.  
  306. $cfg['Export']['format']                    = 'sql';  // sql/latex/excel/csv/xml/xls
  307. $cfg['Export']['compression']               = 'none'; // none/zip/gzip/bzip2
  308.  
  309. $cfg['Export']['asfile']                    = FALSE;
  310. $cfg['Export']['onserver']                  = FALSE;
  311. $cfg['Export']['onserver_overwrite']        = FALSE;
  312. $cfg['Export']['remember_file_template']    = TRUE;
  313.  
  314. $cfg['Export']['xls_columns']               = FALSE;
  315. $cfg['Export']['xls_null']                  = 'NULL';
  316.  
  317. $cfg['Export']['csv_columns']               = FALSE;
  318. $cfg['Export']['csv_null']                  = 'NULL';
  319. $cfg['Export']['csv_separator']             = ';';
  320. $cfg['Export']['csv_enclosed']              = '"';
  321. $cfg['Export']['csv_escaped']               = '\\';
  322. $cfg['Export']['csv_terminated']            = 'AUTO';
  323. $cfg['Export']['excel_columns']             = FALSE;
  324. $cfg['Export']['excel_null']                = 'NULL';
  325. $cfg['Export']['excel_edition']             = 'win'; // win/mac
  326.  
  327. $cfg['Export']['latex_structure']           = TRUE;
  328. $cfg['Export']['latex_data']                = TRUE;
  329. $cfg['Export']['latex_columns']             = TRUE;
  330. $cfg['Export']['latex_relation']            = TRUE;
  331. $cfg['Export']['latex_comments']            = TRUE;
  332. $cfg['Export']['latex_mime']                = TRUE;
  333. $cfg['Export']['latex_null']                = '\textit{NULL}';
  334. $cfg['Export']['latex_caption']             = TRUE;
  335. $cfg['Export']['latex_data_label']          = 'tab:__TABLE__-data';
  336. $cfg['Export']['latex_structure_label']     = 'tab:__TABLE__-structure';
  337.  
  338. $cfg['Export']['sql_structure']             = TRUE;
  339. $cfg['Export']['sql_data']                  = TRUE;
  340. $cfg['Export']['sql_disable_fk']            = FALSE;
  341. $cfg['Export']['sql_use_transaction']       = FALSE;
  342. $cfg['Export']['sql_drop_database']         = FALSE;
  343. $cfg['Export']['sql_drop_table']            = FALSE;
  344. $cfg['Export']['sql_if_not_exists']         = FALSE;
  345. $cfg['Export']['sql_auto_increment']        = TRUE;
  346. $cfg['Export']['sql_backquotes']            = TRUE;
  347. $cfg['Export']['sql_dates']                 = FALSE;
  348. $cfg['Export']['sql_relation']              = FALSE;
  349. $cfg['Export']['sql_columns']               = FALSE;
  350. $cfg['Export']['sql_delayed']               = FALSE;
  351. $cfg['Export']['sql_ignore']                = FALSE;
  352. $cfg['Export']['sql_hex_for_binary']        = TRUE;
  353. $cfg['Export']['sql_type']                  = 'insert'; // insert/update/replace
  354. $cfg['Export']['sql_extended']              = FALSE;
  355. $cfg['Export']['sql_comments']              = FALSE;
  356. $cfg['Export']['sql_mime']                  = FALSE;
  357. $cfg['Export']['sql_header_comment']        = ''; // \n is replaced by new line
  358.  
  359. /**
  360.  * Link to the official MySQL documentation.
  361.  * Be sure to include no trailing slash on the path.
  362.  * See http://dev.mysql.com/doc/ for more information
  363.  * about MySQL manuals and their types.
  364.  */
  365. $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/mysql/en';
  366.  
  367. /**
  368.  * Type of MySQL documentation:
  369.  *   old        - old style used in phpMyAdmin 2.3.0 and sooner
  370.  *   searchable - "Searchable, with user comments"
  371.  *   chapters   - "HTML, one page per chapter"
  372.  *   big        - "HTML, all on one page"
  373.  *   none       - do not show documentation links
  374.  */
  375. $cfg['MySQLManualType'] = 'searchable';
  376.  
  377.  
  378. /**
  379.  * PDF options
  380.  */
  381. $cfg['PDFPageSizes']        = array('A3', 'A4', 'A5', 'letter', 'legal');
  382. $cfg['PDFDefaultPageSize']  = 'A4';
  383.  
  384.  
  385. /**
  386.  * Language and charset conversion settings
  387.  */
  388. // Default language to use, if not browser-defined or user-defined
  389. $cfg['DefaultLang'] = 'en-iso-8859-1';
  390.  
  391. // Force: always use this language - must be defined in
  392. //        libraries/select_lang.lib.php
  393. // $cfg['Lang']     = 'en-iso-8859-1';
  394.  
  395. // Default charset to use for recoding of MySQL queries, does not take
  396. // any effect when charsets recoding is switched off by
  397. // $cfg['AllowAnywhereRecoding'] or in language file
  398. // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
  399. $cfg['DefaultCharset'] = 'iso-8859-1';
  400.  
  401. // Allow charset recoding of MySQL queries, must be also enabled in language
  402. // file to make harder using other language files than unicode.
  403. // Default value is FALSE to avoid problems on servers without the iconv
  404. // extension and where dl() is not supported
  405. $cfg['AllowAnywhereRecoding'] = FALSE;
  406.  
  407. // You can select here which functions will be used for charset conversion.
  408. // Possible values are:
  409. //      auto   - automatically use available one (first is tested iconv, then
  410. //               recode)
  411. //      iconv  - use iconv or libiconv functions
  412. //      recode - use recode_string function
  413. $cfg['RecodingEngine'] = 'auto';
  414.  
  415. // Specify some parameters for iconv used in charset conversion. See iconv
  416. // documentation for details:
  417. // http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
  418. $cfg['IconvExtraParams'] = '';
  419.  
  420. // Available charsets for MySQL conversion. currently contains all which could
  421. // be found in lang/* files and few more.
  422. // Charsets will be shown in same order as here listed, so if you frequently
  423. // use some of these move them to the top.
  424. $cfg['AvailableCharsets'] = array(
  425.     'iso-8859-1',
  426.     'iso-8859-2',
  427.     'iso-8859-3',
  428.     'iso-8859-4',
  429.     'iso-8859-5',
  430.     'iso-8859-6',
  431.     'iso-8859-7',
  432.     'iso-8859-8',
  433.     'iso-8859-9',
  434.     'iso-8859-10',
  435.     'iso-8859-11',
  436.     'iso-8859-12',
  437.     'iso-8859-13',
  438.     'iso-8859-14',
  439.     'iso-8859-15',
  440.     'windows-1250',
  441.     'windows-1251',
  442.     'windows-1252',
  443.     'windows-1256',
  444.     'windows-1257',
  445.     'koi8-r',
  446.     'big5',
  447.     'gb2312',
  448.     'utf-8',
  449.     'utf-7',
  450.     'x-user-defined',
  451.     'euc-jp',
  452.     'ks_c_5601-1987',
  453.     'tis-620',
  454.     'SHIFT_JIS'
  455. );
  456.  
  457. /**
  458.  * Customization & design
  459.  *
  460.  * The graphical settings are now located in themes/themename/layout.inc.php
  461.  */
  462.  
  463. $cfg['LeftPointerEnable']   = TRUE;         // enable the left panel pointer
  464.                                             // (used when LeftFrameLight is FALSE)
  465.                                             // see also LeftPointerColor
  466.                                             // in layout.inc.php
  467.  
  468. $cfg['BrowsePointerEnable'] = TRUE;        // enable the browse pointer
  469.                                             // see also BrowsePointerColor
  470.                                             // in layout.inc.php
  471.  
  472. $cfg['BrowseMarkerEnable'] = TRUE;         // enable the browse marker
  473.                                             // see also BrowseMarkerColor
  474.                                             // in layout.inc.php
  475.  
  476. $cfg['TextareaCols']        = 40;           // textarea size (columns) in edit mode
  477.                                             // (this value will be emphasized (*2) for sql
  478.                                             // query textareas and (*1.25) for query window)
  479. $cfg['TextareaRows']        = 7;            // textarea size (rows) in edit mode
  480. $cfg['LongtextDoubleTextarea'] = TRUE;      // double size of textarea size for longtext fields
  481. $cfg['TextareaAutoSelect']  = TRUE;         // autoselect when clicking in the textarea of the querybox
  482. $cfg['CharTextareaCols']    = 40;           // textarea size (columns) for CHAR/VARCHAR
  483. $cfg['CharTextareaRows']    = 2;            // textarea size (rows) for CHAR/VARCHAR
  484. $cfg['CtrlArrowsMoving']    = TRUE;         // Enable Ctrl+Arrows moving between fields when editing?
  485. $cfg['LimitChars']          = 50;           // Max field data length in browse mode for all non-numeric fields
  486. $cfg['ModifyDeleteAtLeft']  = TRUE;         // show edit/delete links on left side of browse
  487.                                             // (or at the top with vertical browse)
  488. $cfg['ModifyDeleteAtRight'] = FALSE;        // show edit/delete links on right side of browse
  489.                                             // (or at the bottom with vertical browse)
  490. $cfg['DefaultDisplay']      = 'horizontal'; // default display direction
  491.                                             // (horizontal|vertical|horizontalflipped)
  492. $cfg['DefaultPropDisplay']  = 'horizontal'; // default display direction for altering/
  493.                                             // creating columns (tbl_properties)
  494.                                             // (horizontal|vertical)
  495.  
  496. $cfg['HeaderFlipType']      = 'css';        // table-header rotation via faking or css? (css|fake)
  497.                                             // NOTE: CSS only works in IE browsers!
  498. $cfg['ShowBrowseComments']  = TRUE;         // shows stored relation-comments in 'browse' mode.
  499. $cfg['ShowPropertyComments']= TRUE;         // shows stored relation-comments in 'table property' mode.
  500. $cfg['RepeatCells']         = 100;          // repeat header names every X cells? (0 = deactivate)
  501.  
  502. $cfg['QueryFrame']          = TRUE;         // displays a link or icon in the left frame to open the querybox, and activates the querybox when clicking on [Edit] on the results page.
  503. $cfg['QueryFrameJS']        = TRUE;         // whether to use JavaScript functions for opening a new window for SQL commands.
  504.                                             // if set to 'false', the target of the querybox is always the right frame.
  505. $cfg['QueryWindowWidth']    = 550;          // Width of Query window
  506. $cfg['QueryWindowHeight']   = 310;          // Height of Query window
  507. $cfg['QueryHistoryDB']      = FALSE;         // Set to TRUE if you want DB-based query history.
  508.                                             // If FALSE, this utilizes JS-routines to display
  509.                                             // query history (lost by window close)
  510. $cfg['QueryWindowDefTab']   = 'sql';        // which tab to display in the querywindow on startup
  511.                                             // (sql|files|history|full)
  512. $cfg['QueryHistoryMax']     = 25;           // When using DB-based query history, how many entries
  513.                                             // should be kept?
  514. $cfg['BrowseMIME']          = TRUE;         // Use MIME-Types (stored in column comments table) for
  515. $cfg['MaxExactCount']       = 20000;        // When approximate count < this, PMA will get exact count for
  516.                                             // table rows.
  517. $cfg['WYSIWYG-PDF']         = TRUE;         // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
  518.                                             // the PDF page editor. Requires an IE6/Mozilla based browser.
  519.  
  520. $cfg['NaturalOrder']        = TRUE;         // Sort table and database in natural order
  521.  
  522.  
  523. //-----------------------------------------------------------------------------
  524. // custom-setup by mkkeck: 2004-05-04
  525. //    some specials for new icons and scrollings
  526. // FIXME:
  527. // 2004-05-08 rabus: We need to rearrange these variables.
  528.  
  529. $cfg['ShowHttpHostTitle']   = TRUE;            // show HttpHost in browsers window title (true|false)?
  530. $cfg['SetHttpHostTitle']    = '';              // if ShowHttpHostTitle=true, please set your host (server)
  531.                                              // or an other string, wich should be shown in browsers window title.
  532.                                              // If not set (or empty), the PMA will get your real Host-Adress.
  533.  
  534. $cfg['ErrorIconic']          = TRUE;    // show some icons for warnings, errors and informations (true|false)?
  535. $cfg['MainPageIconic']       = TRUE;    // show icons in list on main page, on right panel top menu (server db table)  and on menu tabs (true|false)?
  536. $cfg['ReplaceHelpImg']       = TRUE;    // show help button instead of strDocumentation (true|false)?
  537.  
  538. // theme manager
  539. $cfg['ThemePath']           = 'themes';      // using themes manager please set up here the path to 'themes'
  540.                                              // else leave empty
  541. $cfg['ThemeManager']        = TRUE;          // if you want to use selectable themes and if ThemesPath not empty
  542.                                              // set it to true, else set it to false (default is false);
  543. $cfg['ThemeDefault']        = 'original';         // set up default theme, if ThemePath not empty
  544.                                              // you can set up here an valid path to themes or 'original' for
  545.                                              // the original pma-theme
  546.  
  547. //-----------------------------------------------------------------------------
  548.  
  549.  
  550. /**
  551.  * Default queries
  552.  * %d will be replaced by the database name.
  553.  * %t will be replaced by the table name.
  554.  * %f will be replaced by a list of field names.
  555.  * (%t and %f only applies to DefaultQueryTable)
  556.  */
  557. $cfg['DefaultQueryTable']    = 'SELECT * FROM %t WHERE 1';
  558. $cfg['DefaultQueryDatabase'] = '';
  559.  
  560. /**
  561.  * SQL Query box settings
  562.  * These are the links display in all of the SQL Query boxes
  563.  */
  564. $cfg['SQLQuery']['Edit']      = TRUE;       // Edit link to change a query
  565. $cfg['SQLQuery']['Explain']   = TRUE;       // EXPLAIN on SELECT queries
  566. $cfg['SQLQuery']['ShowAsPHP'] = TRUE;       // Wrap a query in PHP
  567. $cfg['SQLQuery']['Validate']  = FALSE;      // Validate a query (see $cfg['SQLValidator'] as well)
  568. $cfg['SQLQuery']['Refresh']   = TRUE;       // Refresh the results page
  569.  
  570.  
  571. /**
  572.  * Webserver upload/save/import directories
  573.  */
  574. $cfg['UploadDir']             = '';         // Directory for uploaded files that can be executed by
  575.                                             // phpMyAdmin. For example './upload'. Leave empty for
  576.                                             // no upload directory support
  577. $cfg['SaveDir']               = '';         // Directory where phpMyAdmin can save exported data on
  578.                                             // server. For example './save'. Leave empty for no save
  579.                                             // directory support.
  580. $cfg['docSQLDir']             = '';         // Directory for docSQL imports, phpMyAdmin can import
  581.                                             // docSQL files from that directory. For example
  582.                                             // './docSQL'. Leave empty for no docSQL import support.
  583. $cfg['TempDir']               = '';         // Directory where phpMyAdmin can save temporary files.
  584.                                             // This is needed for MS Excel export, see documentation
  585.                                             // how to enable that.
  586.  
  587.  
  588. /**
  589.  * Misc. settings
  590.  */
  591. $cfg['GD2Available']          = 'auto';     // Is GD >= 2 available? Set to yes/no/auto. 'auto'
  592.                                             // does autodetection, which is a bit expensive for
  593.                                             // php < 4.3.0, but it is the only safe vay how to
  594.                                             // determine GD version.
  595. /**
  596.  * SQL Parser Settings
  597.  */
  598. $cfg['SQP']['fmtType']      = 'html';       // Pretty-printing style to use on queries (html, text, none)
  599. $cfg['SQP']['fmtInd']       = '1';          // Amount to indent each level (floats ok)
  600. $cfg['SQP']['fmtIndUnit']   = 'em';         // Units for indenting each level (CSS Types - {em,px,pt})
  601. // The graphical settings are now located in themes/themename/layout.inc.php
  602.  
  603. /**
  604.  * If you wish to use the SQL Validator service, you should be
  605.  * aware of the following:
  606.  * All SQL statements are stored anonymously for statistical purposes.
  607.  * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
  608.  * All rights reserved.
  609.  */
  610. $cfg['SQLValidator']['use']      = FALSE;   // Make the SQL Validator available
  611. $cfg['SQLValidator']['username'] = '';      // If you have a custom username, specify it here (defaults to anonymous)
  612. $cfg['SQLValidator']['password'] = '';      // Password for username
  613.  
  614. /**
  615.  * Developers ONLY!
  616.  * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
  617.  */
  618. $cfg['DBG']['enable'] = FALSE;              // Make the DBG stuff available
  619. $cfg['DBG']['profile']['enable'] = FALSE;   // Produce profiling results of PHP
  620. $cfg['DBG']['profile']['threshold'] = 0.5;  // Threshold of long running code to display
  621.                                             // Anything below the threshold is not displayed
  622.  
  623.  
  624. /**
  625.  * MySQL settings
  626.  */
  627. // Column types;
  628. // varchar, tinyint, text and date are listed first, based on estimated popularity
  629. $cfg['ColumnTypes'] = array(
  630.    'VARCHAR',
  631.    'TINYINT',
  632.    'TEXT',
  633.    'DATE',
  634.    'SMALLINT',
  635.    'MEDIUMINT',
  636.    'INT',
  637.    'BIGINT',
  638.    'FLOAT',
  639.    'DOUBLE',
  640.    'DECIMAL',
  641.    'DATETIME',
  642.    'TIMESTAMP',
  643.    'TIME',
  644.    'YEAR',
  645.    'CHAR',
  646.    'TINYBLOB',
  647.    'TINYTEXT',
  648.    'BLOB',
  649.    'MEDIUMBLOB',
  650.    'MEDIUMTEXT',
  651.    'LONGBLOB',
  652.    'LONGTEXT',
  653.    'ENUM',
  654.    'SET'
  655. );
  656.  
  657. // Attributes
  658. $cfg['AttributeTypes'] = array(
  659.    '',
  660.    'BINARY',
  661.    'UNSIGNED',
  662.    'UNSIGNED ZEROFILL'
  663. );
  664.  
  665. // Available functions
  666. if ($cfg['ShowFunctionFields']) {
  667.     $cfg['Functions'] = array(
  668.        'ASCII',
  669.        'CHAR',
  670.        'SOUNDEX',
  671.        'LCASE',
  672.        'UCASE',
  673.        'NOW',
  674.        'PASSWORD',
  675.        'MD5',
  676.        'SHA1',
  677.        'ENCRYPT',
  678.        'RAND',
  679.        'LAST_INSERT_ID',
  680.        'COUNT',
  681.        'AVG',
  682.        'SUM',
  683.        'CURDATE',
  684.        'CURTIME',
  685.        'FROM_DAYS',
  686.        'FROM_UNIXTIME',
  687.        'PERIOD_ADD',
  688.        'PERIOD_DIFF',
  689.        'TO_DAYS',
  690.        'UNIX_TIMESTAMP',
  691.        'USER',
  692.        'WEEKDAY',
  693.        'CONCAT'
  694.     );
  695.  
  696.     // Which column types will be mapped to which Group?
  697.     $cfg['RestrictColumnTypes'] = array(
  698.        'VARCHAR'      => 'FUNC_CHAR',
  699.        'TINYINT'      => 'FUNC_NUMBER',
  700.        'TEXT'         => 'FUNC_CHAR',
  701.        'DATE'         => 'FUNC_DATE',
  702.        'SMALLINT'     => 'FUNC_NUMBER',
  703.        'MEDIUMINT'    => 'FUNC_NUMBER',
  704.        'INT'          => 'FUNC_NUMBER',
  705.        'BIGINT'       => 'FUNC_NUMBER',
  706.        'FLOAT'        => 'FUNC_NUMBER',
  707.        'DOUBLE'       => 'FUNC_NUMBER',
  708.        'DECIMAL'      => 'FUNC_NUMBER',
  709.        'DATETIME'     => 'FUNC_DATE',
  710.        'TIMESTAMP'    => 'FUNC_DATE',
  711.        'TIME'         => 'FUNC_DATE',
  712.        'YEAR'         => 'FUNC_DATE',
  713.        'CHAR'         => 'FUNC_CHAR',
  714.        'TINYBLOB'     => 'FUNC_CHAR',
  715.        'TINYTEXT'     => 'FUNC_CHAR',
  716.        'BLOB'         => 'FUNC_CHAR',
  717.        'MEDIUMBLOB'   => 'FUNC_CHAR',
  718.        'MEDIUMTEXT'   => 'FUNC_CHAR',
  719.        'LONGBLOB'     => 'FUNC_CHAR',
  720.        'LONGTEXT'     => 'FUNC_CHAR',
  721.        'ENUM'         => '',
  722.        'SET'          => ''
  723.     );
  724.  
  725.     // Map above defined groups to any function
  726.     $cfg['RestrictFunctions'] = array(
  727.         'FUNC_CHAR'   => array(
  728.             'ASCII',
  729.             'CHAR',
  730.             'SOUNDEX',
  731.             'LCASE',
  732.             'UCASE',
  733.             'PASSWORD',
  734.             'MD5',
  735.             'SHA1',
  736.             'ENCRYPT',
  737.             'LAST_INSERT_ID',
  738.             'USER',
  739.             'CONCAT'
  740.         ),
  741.  
  742.         'FUNC_DATE'   => array(
  743.             'NOW',
  744.             'CURDATE',
  745.             'CURTIME',
  746.             'FROM_DAYS',
  747.             'FROM_UNIXTIME',
  748.             'PERIOD_ADD',
  749.             'PERIOD_DIFF',
  750.             'TO_DAYS',
  751.             'UNIX_TIMESTAMP',
  752.             'WEEKDAY'
  753.         ),
  754.  
  755.         'FUNC_NUMBER' => array(
  756.             'ASCII',
  757.             'CHAR',
  758.             'MD5',
  759.             'SHA1',
  760.             'ENCRYPT',
  761.             'RAND',
  762.             'LAST_INSERT_ID',
  763.             'COUNT',
  764.             'AVG',
  765.             'SUM'
  766.         )
  767.     );
  768.  
  769.     // Default functions for above defined groups
  770.     $cfg['DefaultFunctions'] = array(
  771.         'FUNC_CHAR'         => '',
  772.         'FUNC_DATE'         => '',
  773.         'FUNC_NUMBER'       => '',
  774.         'first_timestamp'   => 'NOW'
  775.     );
  776.  
  777.  
  778. } // end if
  779.  
  780. // Search operators
  781. $cfg['NumOperators'] = array(
  782.    '=',
  783.    '>',
  784.    '>=',
  785.    '<',
  786.    '<=',
  787.    '!=',
  788.    'LIKE',
  789.    'NOT LIKE'
  790. );
  791.  
  792. $cfg['TextOperators'] = array(
  793.    'LIKE',
  794.    'LIKE %...%',
  795.    'NOT LIKE',
  796.    '=',
  797.    '!=',
  798.    'REGEXP',
  799.    'NOT REGEXP'
  800. );
  801.  
  802. $cfg['EnumOperators'] = array(
  803.    '=',
  804.    '!='
  805. );
  806.  
  807. $cfg['NullOperators'] = array(
  808.    'IS NULL',
  809.    'IS NOT NULL'
  810. );
  811.  
  812. $cfg['UnaryOperators'] = array(
  813.    'IS NULL'     => 1,
  814.    'IS NOT NULL' => 1
  815. );
  816.  
  817. /**
  818.  * Unset magic_quotes_runtime - do not change!
  819.  */
  820. set_magic_quotes_runtime(0);
  821.  
  822. /**
  823.  * File Revision - do not change either!
  824.  */
  825. $cfg['FileRevision'] = '$Revision: 2.40 $';
  826. ?>
  827.